﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourSOAPServices.Persistencia;
using PiscoSourDominio;

namespace PiscoSourSOAPServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "SerOrden" in code, svc and config file together.
    public class SerOrden : IOrdenes
    {
        private OrdenDAO ordenDAO = null;
        private OrdenDAO OrdenDAO
        {
            get
            {
                if (ordenDAO == null)
                    ordenDAO = new OrdenDAO();
                return ordenDAO;
            }
        }

        public List<Orden> ListarOrdenes()
        {
            return OrdenDAO.ListarOrdenes().ToList();
        }
    }
}
